package cn.nebula.music.domain;

import java.io.Serializable;

import org.springframework.context.annotation.Lazy;

public class SingerClassification implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer singer;
	private Integer classification;

	public Integer getSinger() {
		return singer;
	}

	public void setSinger(Integer singer) {
		this.singer = singer;
	}

	public Integer getClassification() {
		return classification;
	}

	public void setClassification(Integer classification) {
		this.classification = classification;
	}

	@Override
	public String toString() {
		return "SingerClassification [singer=" + singer + ", classification=" + classification + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((classification == null) ? 0 : classification.hashCode());
		result = prime * result + ((singer == null) ? 0 : singer.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		SingerClassification other = (SingerClassification) obj;
		if (classification == null) {
			if (other.classification != null)
				return false;
		} else if (!classification.equals(other.classification))
			return false;
		if (singer == null) {
			if (other.singer != null)
				return false;
		} else if (!singer.equals(other.singer))
			return false;
		return true;
	}

	
}
